package com.garen.sys.biz;

import com.garen.sys.entity.FireOrg;

import java.util.List;
import com.garen.common.*;


public interface IFireOrgBiz {

	/*
	 * 获取指定部门所有子部门
	 * */
	List<Integer> getOrgChildrenID(Integer orgParentId);
	
	//orgId1 是否为 orgId2父部门
	boolean isSubOrg(List<FireOrg> orgList, Integer pid, Integer orgId);
		
	/*
	*分页查询
	*/
	List<FireOrg> getFireOrgList(PageBean<FireOrg> pb,FireOrg fireOrg);

	/*
	*无分页查询列表
	*/
	List<FireOrg> getFireOrgList(FireOrg fireOrg);

	/*
	*根据部门类型
	*/
	List<FireOrg> getFireOrgList(int orgType);
	
	/*
	*查询实体
	*/
	FireOrg getFireOrg(FireOrg fireOrg);

	/*
	*保存
	*/
	int saveFireOrg(MsgBean mbean,FireOrg fireOrg);

	/*
	*删除
	*/
	int delFireOrg(MsgBean mbean,FireOrg fireOrg);

	List<FireOrg> getFireOrgListByType(FireOrg fireOrg,Integer orgParentId);

	//获取树
	List<FireOrg> getFireOrgListByTree(MsgBean mbean,FireOrg fireOrg,Integer orgParentId);
	
}
